<?php
include('common.php');

$name = $_POST['name'];
$filename = $path.$name;
$re = array();
if (file_exists($filename))
{
	$re['success'] = false;
	$re['msg'] = 'file exists';
}
else
{
	file_put_contents($filename,'');
	$re['success'] = file_exists($filename);
}

echo json_encode($re);
